{temp('admin/head')}
<script src="{$adstyle}/js/art/artDialog.source.js?skin=opera"></script>
<script src="{$adstyle}/js/art/plugins/iframeTools.source.js"></script>
	
</head>
<body class="page-body">
	
		{temp('admin/left')}
			
			{temp('admin/top')}
			
			<div class="row">
				<div class="col-sm-12">
					
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">{$tit}</h3>
						</div>
						<div class="panel-body">
						{if(@$user)}							
							<form method="post" enctype="multipart/form-data" action="{if($user['lx'] == 2)}{$_url}/admin/?act=recruit&met=tjvip_sck&uid={$user['id']}{$gnpd}{else}{$_url}/admin/?act=recruit&met=zhuangjia_sck&uid={$user['id']}{$gnpd}{/if}" role="form" class="form-horizontal">							
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">手机号码</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" name="phone" value="{if($user['phone'])}{$user['phone']}{/if}" />			
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">电子邮箱</label>
									<div class="col-sm-10" >
											<input type="text" class="form-control" name="email"value="{if(@$user['email'])}{$user['email']}{/if}" />
																
									</div>
								</div>
								{if(@$user['base'])}
								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">身份证件号</label>
									<div class="col-sm-10" >
										<input type="text" class="form-control" name="sfzh"value="{if(@$user['base']['sfzh'])}{$user['base']['sfzh']}{/if}" />	
									</div>
								</div>
								<div class="form-group-separator"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label" for="level">等级</label>
									<div class="col-sm-10">
										<select class="form-control" name="level">
						        			<option {if(@$user['level'] == 0)}selected="selected"{/if} value="0">普通用户</option>
						        			<option {if(@$user['level'] == 1)}selected="selected"{/if} value="1">带V用户（接受过线下培训）</option>
						        			<option {if(@$user['level'] == 2)}selected="selected"{/if} value="2">带W用户（由积分决定）</option>
						        			<option {if(@$user['level'] == 3)}selected="selected"{/if} value="3">带S用户（接受过线上培训）</option>
						        		</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-8">专家头像</label>
									<div class="col-sm-10">
										<input type="file"  name="touxiang" class="form-control" style="height:100%;"/>
										<img src="{if(@$user['base']['touxiang'])}{photo({$user['base']['touxiang']})}{/if}" id="ii" width="48" />
										
									</div>
								</div>
	
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-7">姓名</label>
									<div class="col-sm-10" >
										<input type="text" class="form-control" name="name" value="{if(@$user['base']['name'])}{$user['base']['name']}{/if}" />				
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-6">性别</label>
									<div class="col-sm-10">
										<select class="form-control" name="sex" onChange="bra(this.value)">
											<option {if(@$user['base']['sex'] == 1)}selected="selected"{/if}value="1">男</option>
											<option {if(@$user['base']['sex'] == 2)}selected="selected"{/if}value="2">女</option>
											<option {if(@$user['base']['sex'] == 0)}selected="selected"{/if}value="0">保密</option>								
										</select>
									</div>
								</div>	
										
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-7">民族</label>
									<div class="col-sm-10" >
										<input type="text" class="form-control" required="required" name="minzu" value="{if(@$user['base']['minzu'])}{$user['base']['minzu']}{/if}" />								
									</div>
								</div>		
								 <div class="form-group">
									<label class="col-sm-2 control-label" for="cstime">出生日期</label>
									<div class="col-sm-10">
										<input type="text" class="form-control datepicker" name="cstime" value="{if(@$user['base']['cstime'])}{code(echo date('Y-m-d',$user['base']['cstime']))}{/if}" data-format="yyyy-mm-dd" data-start-date="" data-end-date="-1d">
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">现居住地</label>
									<div class="col-sm-10">
										<div class="col-sm-2">
										<select name="xsheng" id="xsheng" onChange="gbdz(this.value,'xshi','xqu')"  class="form-control">
						        			<option value="0">请选择</option>
						        			{if(@$sh)}
						        			{foreach($sh as $k=>$v)}
						        			<option {if(@$user['base']['xsheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select name="xshi" id="xshi" onChange="gbdz(this.value,'xqu','')"  class="form-control">
						        			<option value="0">请选择</option>
						        			{if(@$sshi)}
						        			{foreach($sshi as $k=>$v)}
						        			<option {if(@$user['base']['xshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select name="xqu" id="xqu"  class="form-control">
						        			<option value="0">请选择</option>
						        			{if(@$squ)}
						        			{foreach($squ as $k=>$v)}
						        			<option {if(@$user['base']['xqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<input type="text" value="{if(@$user['base']['xsq'])}{$user['base']['xsq']}{/if}" name="xsq" class="form-control" style="width:50%;"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-4">毕业院校</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" name="byyx"  value="{if(@$user['base']['byyx'])} {$user['base']['byyx']}{/if}"/>
									</div>
								</div>															
								
								<div class="form-group-separator"></div>
								
								{if($user['lx'] == 2)}					
								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">身份证扫描件</label>
									<div class="col-sm-10" >
										<input type="file"  name="sfzsmj" class="form-control" style="height:100%;"/>{if(@$user['base']['sfzsmj'])}<img src="{photo({$user['base']['sfzsmj']})}" id="ii" width="48" />{/if}						
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">工作证明扫面件</label>
									<div class="col-sm-10" >
										<input type="file"  name="gzzmsmj" class="form-control" style="height:100%;"/>{if(@$user['base']['gzzmsmj'])}<img src="{photo({$user['base']['gzzmsmj']})}" id="ii" width="48" />{/if}					
									</div>
								</div>
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">擅长领域</label>
									<div class="col-sm-10" >
										<textarea class="form-control" cols="5" name="scly">{if(@$user['base']['scly'])} {$user['base']['scly']}{/if}</textarea>										
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">主要成就</label>
									<div class="col-sm-10" >
										<textarea class="form-control" cols="5" name="zycj">{if(@$user['base']['zycj'])} {$user['base']['zycj']}{/if}</textarea>			
									</div>
								</div>
								<div class="form-group-separator"></div>
								{elseif($user['lx'] == 1)}
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">毕业时间</label>
									<div class="col-sm-10">
										<input type="text" class="form-control datepicker" id="bytime" name="bytime" value="{if(@$user['base']['bytime'])}{code(echo date('Y-m-d',$user['base']['bytime']))}{/if}" data-format="yyyy-mm-dd" data-start-date="" data-end-date="-0d">
										
									</div>
								</div>

								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">户口所在地</label>
									<div class="col-sm-10">
										<div class="col-sm-2">
										<select name="hksheng" id="hksheng" class="form-control" onChange="gbdz(this.value,'hkshi','hkqu')">
						        			<option value="0">请选择</option>
						        			{if(@$sh)}
						        			{foreach($sh as $k=>$v)}
						        			<option {if(@$user['base']['hksheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select name="hkshi" id="hkshi" class="form-control" onChange="gbdz(this.value,'hkqu','')">
						        			<option value="0">请选择</option>
						        			{if(@$shkshi)}
						        			{foreach($shkshi as $k=>$v)}
						        			<option {if(@$user['base']['hkshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select name="hkqu" class="form-control" id="hkqu">
						        			<option value="0">请选择</option>
						        			{if(@$shkqu)}
						        			{foreach($shkqu as $k=>$v)}
						        			<option {if(@$user['base']['hkqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-4">
                                    	<input type="text" class="form-control" name="hk" value="{if(@$user['base']['hk'])}{$user['base']['hk']}{/if}"/>
										</div>
						        		
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">婚姻状态</label>
									<div class="col-sm-10">
										<select class="form-control" name="hyzt" onChange="bra(this.value)">
											<option {if(@$user['base']['hyzt'] == 1)}selected="selected"{/if}value="1">已婚</option>
											<option {if(@$user['base']['hyzt'] == 0)}selected="selected"{/if}value="0">未婚</option>
										</select>
									</div>
								</div>
								<div class="form-group-separator"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">学历</label>
									<div class="col-sm-10">
										<select class="form-control" name="xueli" onChange="bra(this.value)">
										{if(@$_xueli)}
						        			{foreach($_xueli as $k=>$v)}
						        			<option {if(@$user['base']['xueli'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
						        		{/foreach}
						        		{/if}											
										</select>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">主修专业</label>
									<div class="col-sm-10">
										<select class="form-control" name="zhuanye">
							        			<option value="0">请选择</option>
							        			{if(@$zhuany)}
							        			{foreach($zhuany as $k=>$v)}
							        			<option {if(@$user['base']['zhuanye'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
							        			{/foreach}
							        			{/if}
							        	</select>
						        	</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">外语语种</label>
									<div class="col-sm-10">
										<select class="form-control" name="waiyu">
						        			{if(@$_waiyu)}
						        			{foreach($_waiyu as $k=>$v)}
						        			<option {if(@$user['base']['waiyu'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">政治面貌</label>
									<div class="col-sm-10">
										<input class="form-control" name="zzmm" type="text" value="{if(@$user['base']['zzmm'])}{$user['base']['zzmm']}{/if}"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">QQ</label>
									<div class="col-sm-10">
										<input class="form-control" type="text" name="qq" value="{if(@$user['base']['qq'])}{$user['base']['qq']}{/if}"/>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-3">个人主页</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" name="grzy" value="{if(@$user['base']['grzy'])}{$user['base']['grzy']}{/if}"/>
									</div>
								</div>
								{/if}
								{/if}
								<div class="form-group">
									<div class="col-sm-10">
										<a href="{if($user['lx'] == 1)}{$_url}/admin/?act=recruit&met=zjiagl{$gnpd}{elseif($user['lx'] == 2)} {$_url}/admin/?act=recruit&met=vipzjiagl{$gnpd}{/if}"  class="btn btn-info btn-single pull-right" style="margin-left:10px;">返回</a>
										<button type="submit"  class="btn btn-secondary btn-single pull-right">保存</button>					
									</div>											
								</div>
							</form>
						{/if}	
						</div>
					</div>
				</div>
			</div>
			
		<script type="text/javascript">
			function gbdz(id,nn,cc){//改变地址
				$.post('{$_url}/admin/?act=get_diqu{$gnpd}',{id:id},function(data){
					$("#"+nn).html(data);
					if(cc != ''){
						$("#"+cc).html('<option value="0">请选择</option>');
					}
				});
			}
			
			function quer(uid){
				var sfzh = $('#sfzh').val();
				alert(sfzh);
				 /*var content = document.getElementById('field-2').value;
				alert(uid); */
			}
		</script>
		{temp('admin/foot')}
	<!-- Bottom Scripts -->
	<script src="assets/js/bootstrap.min.js"></script>
	<script src="assets/js/TweenMax.min.js"></script>
	<script src="assets/js/resizeable.js"></script>
	<script src="assets/js/joinable.js"></script>
	<script src="assets/js/xenon-api.js"></script>
	<script src="assets/js/xenon-toggles.js"></script>
	<script src="assets/js/rwd-table/js/rwd-table.min.js"></script>
	<script src="{$adstyle}/js/datepicker/bootstrap-datepicker.js"></script>
	<script src="assets/js/xenon-custom.js"></script>
</body>
</html>